package com.spring.cloud.weatherbasic.service;

import com.spring.cloud.weatherbasic.vo.WeatherResponse;

/**
 * Created by Administrator on 2018/3/13
 */
public interface WeatherDataService {

    /**
     * 根据城市ID查询天气数据
     * @param cityId cityId
     * @return WeatherResponse
     */
    WeatherResponse getDataByCityId(String cityId);

    /**
     * 根据城市名称查询天气数据
     * @param cityName cityName
     * @return WeatherResponse
     */
    WeatherResponse getDataByCityName(String cityName);

    /**
     * 根据城市ID来同步天气
     * @param cityId cityId
     */
    void syncDataByCityId(String cityId);
}
